package com.wicket.okrapp.dal.po.mbg;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


import com.wicket.okrapp.common.annotations.OrderFlag;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 辅表，只有一个版本，表类型（空间独有），可作废，可物理删除，前提文件夹下无文件夹或文件。我的自主网盘对应个根文件夹
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("oms_unstructured_data_folder")
public class OmsUnstructuredDataFolder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 文档夹ID:
     */
    @TableId(value = "unstructured_data_folder_id", type = IdType.UUID)
    @NotNull(message = "unstructuredDataFolderId不能为空")
    private String unstructuredDataFolderId;

    /**
     * 文件夹名:
     */
    @TableField(value = "folder_name")
    @NotNull(message = "文件夹名不能为空")
    @ApiModelProperty("文件夹名")
    private String folderName;

    /**
     * 父文件夹ID:
     */
    @TableField(value = "parent_unstructured_data_folder_id")
    @ApiModelProperty("父文件夹ID")
    private String parentUnstructuredDataFolderId;

    /**
     * 文件夹下文件大小:
     */
    @TableField(value = "file_size")
    @ApiModelProperty("文件夹下文件大小 ")
    private String fileSize;

    /**
     * 是否一级文件夹:
     */
    @TableField(value = "is_root_folder")
    @ApiModelProperty("是否一级文件夹")
    private String isRootFolder;

    /**
     * 是否末级文件夹 :
     */
    @TableField(value = "is_last_folder")
    @ApiModelProperty("是否末级文件夹 ")
    private String isLastFolder;

    /**
     * 主体生命周期:
     */
    @TableField(value = "subject_life_cycle")
    @NotNull(message = "主体生命周期不能为空")
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 是否存档:
     */
    @TableField(value = "is_archive")
    @NotNull(message = "是否存档不能为空")
    @ApiModelProperty("是否存档")
    private String isArchive;

    /**
     * 操作人就职记录ID:
     */
    @TableField(value = "operation_induction_id")
    @NotNull(message = "操作人就职记录ID不能为空")
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 创建人就职记录ID:
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID不能为空")
    @ApiModelProperty("创建人就职记录ID")
    private String createInductionId;

    /**
     * 发布人就职记录ID:
     */
    @TableField(value = "release_induction_id")
    @ApiModelProperty("发布人就职记录ID")
    private String releaseInductionId;

    /**
     * 存档人就职记录ID:
     */
    @TableField(value = "archive_induction_id")
    @ApiModelProperty("archiveInductionId")
    private String archiveInductionId;

    /**
     * 操作时间:
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @ApiModelProperty("操作时间")
    @OrderFlag(orderType = "desc")
    private Date operateTime;

    /**
     * 创建时间:
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 发布时间:
     */
    @TableField(value = "release_time")
    @ApiModelProperty("发布时间")
    private Date releaseTime;

    /**
     * 存档时间:
     */
    @TableField(value = "archive_time")
    @ApiModelProperty("archiveTime")
    private Date archiveTime;

    /**
     * 是否作废:
     */
    @TableField(value = "is_valid")
    @NotNull(message = "是否作废不能为空")
    @ApiModelProperty("是否作废")
    private String isValid;

    /**
     * 创建于空间ID:
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @ApiModelProperty("创建于空间ID")
    private String spaceId;

    /**
     * 创建于联盟应用ID:
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @ApiModelProperty("创建于联盟应用ID")
    private String appId;
}
